package com.umgsai.thread.thread01;

public class MyThread18 extends Thread {

	private long i = 0;
	@Override
	public void run() {
		System.out.println("thread started...");
		while (true) {
			i++;
			System.out.println(i);
		}
	}
	
	public static void main(String[] args) {
		try {
			System.out.println("main started...");
			MyThread18 thread = new MyThread18();
			thread.start();
			Thread.sleep(10);
			thread.suspend();
			System.out.println("main end...");
		} catch (Exception e) {
			// TODO: handle exception
		}
	}
}
